<?php
header("content-type:text/html;charset=utf-8");
include("../conn/conn.php");
$name=$_POST["name"];
$password=$_POST["password"];
$sql="select * from tb_qx where account='$name' and password='$password'";
$result=mysqli_query($link,$sql);
if(mysqli_num_rows($result)>0){
	echo("<script>alert('登陆成功！');window.location.href='qx.php';</script>");
}else{
	echo("<script>alert('用户名或密码输入错误，请重新输入！');window.location.href='qxdl.php';</script>");
}
?>
